#include <54func.h>
int main()
{
    int i = 0x1234;//小端存储，即低位低地址
    //htonl：是将32位整数从主机字节序转换为网络字节序
    int big_endian_prot = htonl(i);
    printf("big_endian_prot = %x\n",big_endian_prot);
    //将小端口转换为大端口
    return 0;
}
